package com.v5ba.controller;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.v5ba.entity.User;
import com.v5ba.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("get")
    public String get(){
        userService.list();
        userService.list(Wrappers.lambdaQuery(User.class).eq(User::getId, 10));
        userService.lambdaQuery().eq(User::getId, 10).list();
        return "ok";
    }
}
